<?php

namespace Xmlib\Filament\Concerns;

use Filament\Panel;
/**
 * @property bool $is_admin
 */
trait AsFilamentUser
{
    public function canAccessPanel(Panel $panel): bool
    {
        if ($panel->getId() === 'admin') {
            return $this->is_admin;
        }

        return true;
    }
}